package com.yunji.framework_template.web.service.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * ClassName: AdWrapDTO Date: 2018-08-14 19:24
 *
 * @author fenglibin1982@163.com
 * @Blog   http://blog.csdn.net/fenglibing
 */
@Data
@ApiModel(value = "Test结果数据",description = "根据不同的查询类型返回不同的结果")
public class TestWrapDTO<T> {

  @ApiModelProperty("真正结果数据")
  T data;

  public static <T> TestWrapDTO<T> of(T data, List<Integer> adPos) {
    TestWrapDTO<T> testWrapDTO = new TestWrapDTO<T>();
    testWrapDTO.data = data;
    return testWrapDTO;
  }

  public static <T> TestWrapDTO<T> of(T data) {
    return of(data, null);
  }
}
